Skip to content

Conversation

@SOHELAHMED7
Copy link
Member

Generated cookieValidationKey in dynamic way

  • resolved a TODO

Generated `cookieValidationKey` in dynamic way
return [
'request' => [
'cookieValidationKey' => 'api1337', // TODO this should be dynamic
'cookieValidationKey' => uniqid(uniqid(), true)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will make cookie validation key change on every request, so cookies are directly invalidated once created.

The correct solution here would be to generate a components.local file when initializing the project.

Copy link
Member

@cebe cebe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see inline comment

@cebe cebe closed this in 2bb3340 May 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants